#ifndef _MY_ICMP_H_
#define _MY_ICMP_H_

#define ICMP_ECHO_REQUEST 8
#define ICMP_ECHO_REPLY 0

typedef struct tag_icmp_hdr {
	unsigned char type;		 // 类型
	unsigned char code;		 // 编码
	unsigned short checksum; // 校验和
	unsigned short id;		 // 标识符
	unsigned short seq;		 // 序列号
	unsigned char data[0];   // 数据
} icmp_hdr;

#endif
